package com.compose.universally.utils

import android.annotation.SuppressLint
import com.blankj.utilcode.util.ToastUtils
import com.compose.universally.R

@SuppressLint("ResourceAsColor")
fun showInfoToast(string: String) {
    ToastUtils.make().setLeftIcon(R.drawable.ic_toast_info).setBgColor(R.color.blue_2196F3)
        .show(string)
}

@SuppressLint("ResourceAsColor")
fun showErrorToast(string: String) {
    ToastUtils.make().setLeftIcon(R.drawable.ic_toast_error).setBgColor(R.color.red1)
        .show(string)
}

fun showShortToast(string: String) {
    ToastUtils.showShort(string)
}

fun showLongToast(string: String) {
    ToastUtils.showLong(string)
}

@SuppressLint("ResourceAsColor")
fun showSuccessToast(string: String) {
    ToastUtils.make().setLeftIcon(R.drawable.ic_toast_success).setBgColor(R.color.green_388e3c)
        .show(string)
}
